<!DOCTYPE html>

<html>
    <head>
        <title>Page Title</title>
        <meta charset="utf8"/>
        <link href="<?php echo Yii::app()->request->baseUrl . '/css/bootstrap-3.2.0/css/bootstrap.min.css'; ?>" rel="stylesheet" type="text/css"/>
        <script src="<?php echo Yii::app()->request->baseUrl . '/css/bootstrap-3.2.0/js/jquery-1.11.1.min.js'; ?>" type="text/javascript"></script>
        <script src="<?php echo Yii::app()->request->baseUrl . '/css/bootstrap-3.2.0/js/bootstrap.min.js'; ?>" type="text/javascript"></script>

        <style type="text/css">
            #header {width: 100%;height: 50px;background-color: #16B5EF;}
            #header a {display: inline-block;margin-top: 8px;}
            #header span {display: inline-block;margin-top: 8px;color: white;font-size: 20px;}
            .panel {margin-bottom: 0 !important;}
            .photo{float: left;width: 130px;height: 152px;}
            .content{padding-left: 10px;float:left;width: 50%;font-size: 16px;color:#272822;}
        </style>
    </head>

    <body>
        <div id="header">
            <?php
            echo $control->getAjaxLink(array(
                'name' => '<img src="' . Yii::app()->request->baseUrl . '/images/BWeEvent/back.png' . '"/>',
                'id' => 'introduce'), array(
                'viewName' => 'introduce',
                'htmlOptions' => array(
                    'enctype' => 'multipart/form-data'
            )));
            ?>
            <span>介绍</span>
        </div>
        <?php
        if (isset($eventList)) {
            foreach ($eventList as $content) {
                $name = $content->getItem('teacherName')->getValue();
                $height = $content->getItem('height')->getValue();
                $weight = $content->getItem('weight')->getValue();
                $info = $content->getItem('info')->getValue();
                $image = $content->getItem('image')->getValue();
                ?>
                <div class="panel panel-default panel1">
                    <div class="panel-body">
                        <?php
                        echo $control->getAjaxLink(array(
                            'name' => '<img class="photo" src="' . Yii::app()->request->baseUrl . $image . '"/>',
                            'id' => 'introduceArticle'), array(
                            'viewName' => 'introduceArticle',
                            'htmlOptions' => array(
                                'enctype' => 'multipart/form-data'
                        )));
                        ?>
                        <p class="content"><b>姓名：</b><?php echo $name; ?></p>
                        <p class="content"><b>身高：</b><?php echo $height; ?></p>
                        <p class="content"><b>体重：</b><?php echo $weight; ?></p>
                        <p class="content"><b>自我介绍：</b><?php echo $info; ?></p>
                    </div>
                </div>
                <?php
            }
        } else {
            echo '还没有信息列表。';
        }
        ?>
    </body>
</html>
